<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>
<body>
	<rich:panel>
		<h:form>
			<f:facet name="header">

			</f:facet>

			<h:panelGrid columns="2" id="aa">

			Produt<h:selectOneMenu value="#{test.product}">
					<f:selectItems value="#{test.productList}" var="p"
						itemLabel="#{p.name}" itemValue="#{p}" />

					<f:ajax render="aa"></f:ajax>
					<f:converter converterId="productConverter" />
				</h:selectOneMenu>
				
				Product Name <h:outputText value="#{test.product.name}" />
				Product Description <h:outputText
					value="#{test.product.description}" />

			</h:panelGrid>
			<h:panelGrid columns="2">
			Currency<h:inputText value="#{test.catalogItem.currency}" />
			Price:<h:inputText value="#{test.catalogItem.price}" />
			Suppilier<h:inputText value="#{test.catalogItem.supplierId}" />
			Status<h:inputText value="#{test.catalogItem.status}" />
			</h:panelGrid>

			<h:commandButton action="#{test.addCatalogItem()}" value="Add" />
		</h:form>.
	</rich:panel>

</body>
</html>
